import request from '@/utils/request';
import { message } from 'antd';
import defaultSettings from '../../config/defaultSettings';

export async function queryCurrent(params) {
  return request(`${defaultSettings.restAPI}/auth/user`, {
    method: 'GET',
    data: { ...params, method: 'get' },
  });
}


export async function query() {
  return request('/api/users');
}

export async function queryNotices() {
  return request('/api/notices');
}
